package com.zjw.exception;

import com.zjw.enums.AppHttpCodeEnum;
import lombok.Data;

/**
 * 系统异常
 *
 * @author LKZY
 * @date 2023/12/14 16:01
 */
@Data
public class SystemException extends RuntimeException{
    private int code;
    private String message;
    public SystemException(AppHttpCodeEnum appHttpCodeEnum){
        this.code = appHttpCodeEnum.getCode();
        this.message = appHttpCodeEnum.getMsg();
    }
}
